self.onmessage = function (e) {
  if (e.data === "main") {
    const port = e.ports[0];
    port.onmessage = function (e) {
      console.log("receive: ", e.data);
      port.postMessage("worker2: " + e.data);
    };
  }
};
